from tkinter.ttk import Separator
from tkinter import HORIZONTAL
from tkinter import EW,W,E,N,S


class CustomSeparator():

    def __init__(self, win, r, x_length=4):
        """
        分隔线
        :param win: 父元素
        :param r: 第几行
        :param x_length: 线长，默认4栏
        """
        self.separator_root = win
        self.separator_root = Separator(self.separator_root, orient=HORIZONTAL)
        self.separator_root.grid(row=r, column=1, stick=EW, columnspan=x_length)
